module.exports = {
    now() {
        let date = new Date()
        let yy, mm, dd, h, m, s
        yy = date.getFullYear()
        mm = date.getMonth() + 1
        dd = date.getDate()
        h = date.getHours()
        m = date.getMinutes()
        s = date.getSeconds()

        mm = mm < 10 ? '0' + mm : '' + mm
        dd = dd < 10 ? '0' + dd : '' + dd
        h = h < 10 ? '0' + h : '' + h
        m = m < 10 ? '0' + m : '' + m
        s = s < 10 ? '0' + s : '' + s

        return `${yy}-${mm}-${dd} ${h}:${m}:${s}`
    }


}